import Vue from 'vue'
import Router from 'vue-router'
import HelloWorld from '@/components/HelloWorld'
import guide from '@/components/guides/guide'
import guidehot from '@/components/guides/hot'
import asia from '@/components/guides/Asia'
import ask from '@/components/ask/ask'
import question from '@/components/ask/question'
import feeds from '@/components/feeds/feeds'
import transfer from '@/components/plays/transfer'
import raiders from '@/components/raiders/raiders'
import insurance from '@/components/insurance/insurance'
import login from '@/components/login/login'
import forget from '@/components/login/forget'
import bbs from '@/components/bbs/bbs'
import assistant from '@/components/assistant/assistant'
import place from '@/components/place/place'
import shopping from '@/components/shopping/shopping'
import Detailed from '@/components/details/Detailed'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'HelloWorld',
      component: HelloWorld
    },
    {
    	path:'/guide',
    	name:'guide',
    	component:guide,
      children:[
        {
          path:'/guide/',
          name:guidehot,
          component:guidehot
        },
        {
          path:'/guide/Asia/',
          name:'asia',
          component:asia
        }

      ],
      redirect:'/guide/',
    },
    {
      path:'/ask/',
      name:'ask',
      component:ask,
    },
    {
      path:'/ask/question',
      name:'question',
      component:question
    },
    {
      path:'/feeds',
      name:'feeds',
      component:feeds,
    },
    {
      path:'/transfer',
      name:'transfer',
      component:transfer,
    },
    {
      path:'/raiders',
      name:'raiders',
      component:raiders
    },
    {
      path:'/insurance',
      name:'insurance',
      component:insurance
    },
    {
      path:'/login',
      name:'login',
      component:login,
    },
    {
      path:'/forget',
      name:'forget',
      component:forget,
    },
    {
      path:'/bbs',
      name:'bbs',
      component:bbs
    },
    {
      path:'/assistant',
      name:'assistant',
      component:assistant
    },
    {
      path:'/place',
      name:'place',
      component:place
    },
    {
      path:'/shopping',
      name:'shopping',
      component:shopping
    },
    {
      path:'/Detailed',
      name:'Detailed',
      component:Detailed,
      meta:{
        keepAlive:true
      }
    }
  ]
})
